package top.lishuoboy.javase.base.object.equals_hashcode;

public class UserTest {
    public static void main(String[] args) {
        User u1 = new User(1, "张三");
        User u2 = new User(1, "张三");

        System.out.println(u1 == u2);
        System.out.println(u1.equals(u2));
        System.out.println(u1.hashCode() == u2.hashCode());
    }
}
